@extends('company.company')

@section('title','企业中心')
@section('rightcontainer')

<div class="col-xs-10" style="padding-right: 0;">
    <div class="backgr-color-white boderbottom-213">
        <div class="color-1  height-50 clearfix">
            <span class="margin-l-15">试卷管理</span>
            <span class="exam-add float-r">
                <a href="{{url('/company/center/exams/create')}}"><i class="icon-plus"></i>&nbsp;&nbsp;新增试卷</a>
            </span>
        </div>
    </div>
    <div class="tab-row bord-b font-16">
        <ul>
            <li><strong>试卷名称</strong></li>
            <li><strong>分数线</strong></li>
            <li><strong>考试限时</strong></li>
            <li><strong>试题数量</strong></li>
            <li><strong>操作</strong></li>
        </ul>
    </div>
    @foreach ($examinations as $exam)
    <div class="tab-row bord-b" id="news_{{$exam->id}}">
        <ul>
            <li>{{ $exam->name }}</li>
            <li>{{ $exam->score_limit }} 分</li>
            <li>{{ $exam->times }} 分钟</li>
            <li>{{ $exam->question_count }}</li>
            <li>
                <span class="cursor-pointer padd-r-5">
                    <a href="{{ url('/company/center/exams/'.$exam->id) }}">编辑</a>
                </span>
                <span class="cursor-pointer padd-r-5">
                    <a href="javacsrip:void(0)" onclick="delete_one('{{ url('/company/center/exams/'.$exam->id) }}','{{$exam->id}}','{{ csrf_token() }}')">删除</a>
                </span>
            </li>
        </ul>
    </div>
    @endforeach
    <div>{!! $examinations->render() !!} </div>
</div>
@stop

<!--底部导航-->
@section('footer')
@parent
@stop

